package com.woniuxy.amusementparkos.controller.lzw;

import com.woniuxy.amusementparkos.entity.lzw.CAT;
import com.woniuxy.amusementparkos.service.lzw.CATService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * (CAT)表控制层
 *
 * @author makejava
 * @since 2020-04-30 23:53:13
 */
@RestController
@RequestMapping("cAT")
public class CATController {
    /**
     * 服务对象
     */
    @Resource
    private CATService cATService;

    /**
     * 查询全部
     *
     * @param
     * @return 单条数据
     */
    @GetMapping("selectAll")
    public List<CAT> selectAll() {
        return this.cATService.listAll();
    }

}